<template>
    <div >
        {{title}}
       <button @click="onClick">获取用户信息</button>
    </div>
</template>

<script lang="ts">
import {who} from '../../utils/index'
export default {
    data(){
        return{
            title:'首页'
        }
    },
    created(){
        
    },
    methods:{
        onClick(){
            let objPersion={
            userName:'王思聪',
            age:25,
            sex:1
          }
          who(objPersion)
            this.tsFunc(123,456)
        },
        tsFunc(num1:number,num2:number){
            console.log(num1+num2)
        }
    }
}
</script>
